home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / Standard Arrangements / PaneRow.h < prev    next >
Text File  |  1997-06-28  |  512b  |  31 lines

  1. // PaneRow.h
  2.  
  3. #ifndef PaneRow_h
  4. #define PaneRow_h
  5.  
  6. #ifndef PaneRowBase_h
  7. #include "PaneRowBase.h"
  8. #endif
  9.  
  10. template < uint32 paneCount >
  11. class PaneRow: public PaneRowBase
  12.   {
  13.     private:
  14.         ArrangedPane panes[ paneCount ];
  15.     
  16.     public:
  17.         PaneRow()
  18.           : PaneRowBase( panes, paneCount )
  19.           {
  20.             SetParents();
  21.           }
  22.         
  23.         ArrangedPane& operator[]( uint32 i )
  24.             { Assert( i < paneCount ); return panes[ i ]; }
  25.         
  26.         const Pane& operator[]( uint32 i ) const
  27.             { Assert( i < paneCount ); return panes[ i ]; }
  28.   };
  29.  
  30. #endif
  31.